home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 41
/
Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso
/
Aminet
/
comm
/
misc
/
2b_Haracz.lha
/
Haracz
/
Install
/
Install.script
< prev
next >
Wrap
Text File
|
2000-11-13
|
10KB
|
461 lines
; $VER Installation script for Haracz 2.24 (8 October 2000)
; written and english strings by:
; Phillipe Bovier <bovier@club-internet.fr
; Mariusz Danilewicz <mandi@interia.pl>
; deytch translation by: Dirk Neubauer / ATO DE
; Horst Schumann / ATO DE
; french translation by: Phillipe Bovier / ATO FR
; polish translation by: Mariusz Danilewicz / ATO PL
;
; V1.0: original release
; V1.1: modified by Philippe Bovier for compatibility with InstallerNG
;
; /// Variables
(set version "2.24")
(set programme "Haracz")
(set @default-dest "sys:")
; ///
; /// Deutch strings
(if (= @language "deutsch")
(
(set #bad-kick (cat "\n"
"Zur Installation von Haracz benötigt man mindestens Kickstart 3.0!\n")
)
(set #install (cat "\n"
"Haracz Installation\n\n"
"Dieses Skript installiert Haracz V "Version"\n"
"auf deinem Amiga.\n"
"Haracz © 1999 - 2000 Misto/BlaBla Produkt\n\n"
"Alle Rechte vorbehalten ")
)
(set #install2 (cat
"Ein Verzeichnis namens Haracz wird erzeugt.\n\n"
"Alle nötigen Dateien werden dorthin kopiert\n"
"(Hauptprogramm, AppIcon nach ENVARC:, Bilder und das Rexxverzeichnis)\n\n"
"Die Katalogdatei deiner Sprache wird nach \n"
"Catalogs/deine_Sprache/ im Haracz-Verzeichnis kopiert. \n\n"
"Ein Verzeichnis namens docs wird im Haracz-Verzeichnis erzeugt \n"
"und die Anleitung dorthin kopiert.")
)
(set #need_mcc_nlist (cat
"Haracz benötigt die Klasse MCC NList.\n"
"Man findet die neue Version im Aminet unter /dev/mui\n")
)
(set #where (cat
"Wohin soll Haracz und alle notwendigen Dateien"
"installiert werden?\n"
"Ein Verzeichnis namens Haracz wird erzeugt.")
)
(set #where-help (cat "\n"
"Ein Verzeichnis namens Haracz wird erzeugt.\n"
"Alle Hauptdateien und Daten werden kopiert.")
)
(set #ask_icons (cat
"Möchtest du einige Extra-Piktogramme installieren?\n\n"
"JA: Kopiere alle Piktogramme von Haracz\n"
"NEIN: Weiterhin im Haracz-Archiv verfügbar\n")
)
(set #which-language (cat
"Welche Sprache möchtest du mit Haracz benutzen.")
)
)
)
; ///
; /// English strings
(if (= @language "english")
(
(set #bad-kick (cat "\n"
"You must have Kickstart 3.0 or higher installed to use Haracz!\n")
)
(set #install (cat "\n"
"Haracz installation\n\n"
"This script installs Haracz v "Version"\n"
"on your Amiga.\n"
"Haracz © 1999 - 2000 Misto/BlaBla Product\n\n"
"All rights reserved ")
)
(set #install2 (cat
"A drawer named Haracz will be created.\n\n"
"All the necessary files will be copied there\n"
"(Main program, AppIcon in ENVARC:, images and rexx drawer)\n\n"
"Your language will be copied to the \n"
"Catalogs/your_language/ in the Haracz directory. \n\n"
"A drawer named docs will be created in Haracz directory \n"
"and the Manual will be copied there.")
)
(set #need_mcc_nlist (cat
"Haracz needs MCC NList class.\n"
"You can find new version on Aminet in /dev/mui\n")
)
(set #where (cat
"Where do you want to install Haracz"
"with all the necessary files?\n"
"A drawer called Haracz will be created.")
)
(set #where-help (cat "\n"
"A drawer called Haracz will be created.\n"
"Principal files and data will be copied.")
)
(set #ask_icons (cat
"Do you want to copy some extra icons?\n\n"
"YES: Copy all the icons for Haracz\n"
"NO : Available in the haracz archive until next reboot\n")
)
(set #which-language (cat
"Choose the language you want to use with Haracz.")
)
)
)
; ///
; /// French strings
(if (= @language "français")
(
(set #bad-kick (cat "\n"
"Vous devez posseder le Kickstart 3.0 ou supérieur pour utiliser " programme "!\n")
)
(set #install (cat "\n"
"Installation de Haracz\n\n"
"Ce script installe Haracz v "Version"\n"
"sur votre Amiga.\n"
"Haracz © 1999 - 2000 Misto/BlaBla Product\n\n"
"Tous droits réservés.")
)
(set #install2 (cat
"Un tiroir nomme Haracz sera crée.\n\n"
"Le programme principal et autres fichier\n"
"y seront copiés.\n\n"
"(programme principal, appicone dans ENVARC:, tiroir images et rexx)\n"
"Votre langage sera copié dans catalogs/français du tiroir HARACZ\n\n"
"Un tiroir nomme docs sera crée dans\n"
"Haracz et la doc y sera copié.\n\n")
)
(set #need_mcc_nlist (cat
"\nHaracz utilise la classe MCC NList.\n"
"Vous pouvez trouver une version sur Aminet dev/mui\n")
)
(set #where (cat
" S.V.P, sélectionnez le chemin d'accés ou installer "
"Haracz avec ses fichiers annexes."
" Un tiroir appelé Haracz sera créé.")
)
(set #where-help (cat "\n"
"Un tiroir appelé Haracz va ètre crée.\n\n"
"Le fichier principal et ses datas vont ètre copiés dans "
"leurs tiroirs respectifs ainsi que la documentation "
"suivant votre langague.")
)
(set #ask_icons (cat
"Voulez-vous aussi copier des icones supplémentaires?\n\n"
"YES: Copie des tous les icones dans le tiroir haracz\n"
"NO: Icones dispnible dans l'archive d'origine jusqu'au prochain reboot\n")
)
(set #which-language (cat
" S.V.P, sélectionnez le langage que vous desirez "
" utiliser avec Haracz."))
))
; ///
; /// Polish strings
(if (= @language "polski")
(
(set #bad-kick (cat "\n"
"Haracz wymaga systemu 3.0 lub nowszego!\n")
)
(set #install (cat "\n"
"Instalacja Haracza\n\n"
"Ten skrypt zainstaluje Haracza v "Version"\n"
"na Twojej Amidze.\n"
"Haracz © 1999 - 2000 Misto/BlaBla Product\n\n"
"All rights reserved ")
)
(set #install2 (cat
"Katalog o nazwie Haracz zostanie utworzony.\n\n"
"Wszystkie niezbëdne pliki zostanâ tam skopiowane\n"
"(Program gîówny, katalog z obrazkami i skryptami ARexxa)\n\n"
"Lokalizacja programu zostanie skopiowana do podkatalogu\n"
"Catalogs/twoj_jezyk/ w katalogu Haracza.\n\n"
"Dokumentacja w wybranym przez Ciebie jëzyku\n"
"zostanie skopiowana do podkatalogu Docs/.")
)
(set #need_mcc_nlist (cat
"Haracz wymaga klasy MCC NList.\n"
"Moûesz znaleúê nowâ wersjë na aminecie w katalogu /dev/mui\n")
)
(set #where (cat
"Gdzie chcesz zainstalowaê Haracza razem ze"
"wszystkimi niezbëdnymi plikami.\n"
"Katalog Haracz zostanie utworzony.")
)
(set #where-help (cat "\n"
"Katalog Haracz zostanie utworzony.\n"
"Wszystkie niezbëdne pliki zostanâ tam skopiowane.")
)
(set #ask_icons (cat
"Czy chcesz skopiowaê katalog z dodatkowymi ikonami?\n\n"
"TAK: Kopiuje wszystkie ikony do Haracza\n"
"NIE: Dostëpne w katalogu Icons/ pakietu instalacyjnego\n")
)
(set #which-language (cat
"Wybierz jëzyk jakiego chcesz uûywaê z Haraczem.")
)))
; ///
; /// Main part
(if (< (/ (getversion) 65536) 39)
(abort #bad-kick)
)
(message #install)
(message #install2)
(if (not (exists "MUI:Libs/MUI/NList.mcc"))
(abort #need_MCC_NLIST)
)
(if (patmatch "(68020|68030|68040|68060)" (database "cpu"))
(copylib
(help @copylib-help)
(prompt "\nMonthNavigator.mcc\n")
(source "/libs/mui/MonthNavigator020.mcc")
(dest "MUI:Libs/Mui")
(newname "MonthNavigator.mcc")
(confirm "average")
)
(copylib
(help @copylib-help)
(prompt "\nMonthNavigator.mcc\n")
(source "/libs/mui/MonthNavigator.mcc")
(dest "MUI:Libs/Mui")
(confirm "average")
)
)
(copylib
(prompt "MonthNavigator.mcp")
(source "/libs/mui/monthnavigator.mcp")
(dest "MUI:libs/mui")
(help @copylib-help)
(confirm "average")
)
(copylib
(prompt "date.library")
(source "/Libs/date.library")
(dest "LIBS:")
(help @copylib-help)
(confirm "average")
)
(set @default-dest
(askdir (prompt (cat #where))
(help #where-help)
(default @default-dest )
)
)
(set destdir (tackon @default-dest "Haracz"))
(makedir destdir (infos))
(copyfiles
(source "/Haracz")
(dest destdir)
(infos)
)
(copyfiles
(source "/Haracz.config")
(dest destdir)
)
(if (>= (/ (getversion) 65536) 41)
(
(copyfiles
(source "/os35/def_BlaBla.info")
(dest "ENV:SYS")
)
(copyfiles
(source "/os35/def_BlaBla.info")
(dest "ENVARC:SYS")
)
)
(
(copyfiles
(source "/def_BlaBla.info")
(dest "ENVARC:SYS")
)
(copyfiles
(source "/def_BlaBla.info")
(dest "ENV:SYS")
)
)
)
(set imagesdir (tackon destdir "images"))
(makedir imagesdir)
(if (>= (/ (getversion) 65536) 41)
(copyfiles
(source "/os35/images")
(dest imagesdir)
(all)
)
(copyfiles
(source "/images")
(dest imagesdir)
(all)
)
)
(set rexxdir (tackon destdir "rexx"))
(makedir rexxdir)
(copyfiles
(source "/rexx")
(dest rexxdir)
(all)
)
(set Icons
(askbool
(prompt (cat #ask_icons))
(help @askchoice-help)
(default 1)
)
)
(if (<> 0 Icons)
(
(set iconsdir (tackon destdir "icons"))
(makedir iconsdir)
(copyfiles
(source "/icons")
(dest iconsdir)
(all)
)
)
)
(
(SET catdoc
(ASKCHOICE
(PROMPT #which-language)
(help @askchoice-help)
(if (= @language "deutsch") ((default 0)))
(if (= @language "english") ((default 1)))
(if (= @language "français") ((default 2)))
(if (= @language "polski") ((default 3)))
(CHOICES
"deutsch"
"english (built-in)"
"français"
"polski"
)
)
)
)
(if (= catdoc 0) ; deutsch
(set guidefile "/docs/deutsch")
(set catsrc "/catalogs/deutsch")
)
(if (= catdoc 1) ; english
(set guidefile "/docs/english")
)
(if (= catdoc 2) ; français
(set guidefile "/docs/français")
(set catsrc "/catalogs/français")
)
(if (= catdoc 3) ; polski
(set guidefile "/docs/polski")
(set catsrc "/catalogs/polski")
)
(set destdocdir (tackon destdir "Docs"))
(makedir destdocdir (infos))
(if (<> catdoc 1)
(
(makedir (tackon destdir "Catalogs"))
(if (= catdoc 0) ; deutsch
(
(makedir (tackon destdir "Catalogs/deutsch"))
(set catdest (tackon destdir "Catalogs/deutsch"))
)
)
(if (= catdoc 2) ; français
(
(makedir (tackon destdir "Catalogs/français"))
(set catdest (tackon destdir "Catalogs/français"))
)
)
(if (= catdoc 3) ; polski
(
(makedir (tackon destdir "Catalogs/polski"))
(set catdest (tackon destdir "Catalogs/polski"))
)
)
(copyfiles
(source catsrc)
(dest catdest)
(all)
)
)
)
(copyfiles
(source "/docs/common")
(dest destdocdir)
(all)
(infos)
)
(copyfiles
(source guidefile)
(dest destdocdir)
(infos)
(all)
(optional "oknodelete" "force")
)
(set configsdir (tackon destdir "configs"))
(makedir configsdir)
(copyfiles
(source "/configs")
(dest configsdir)
(all)
)
(set @default-dest destdir)
(EXIT)
; ///